﻿using Nop.Core.Domain.Media;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nop.Data.Mapping.Media
{
    public class PictureLinkCollectionMap : EntityTypeConfiguration<PictureLinkCollection>
    {
        public PictureLinkCollectionMap()
        {
            this.ToTable("PictureLinkCollection");
            this.HasKey(c => c.Id);
            this.Property(c => c.RelatedContentId).IsRequired();
            this.Property(c => c.RelatedContentCategory).IsOptional();
            this.Property(c => c.PictureDisplayType).IsRequired();
            this.Property(c => c.SystemName).IsRequired().HasMaxLength(200);
        }
    }
}
